<template>
  <div id="app">
    <h1 v-show="header">标题栏</h1>
    <el-button size="mini" type="success" class="el-icon-edit">按钮</el-button>
    <i class="el-icon-delete"></i>
    <div id="nav">
      <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link>
      <router-link to="/Dynamic">动态路由匹配实例</router-link>
      <router-link to="/nestedRoute">路由嵌套</router-link>
      <router-link to="/navigation">编程式路由导航</router-link>
    </div>
    <router-view/>
  </div>
</template>
<script>
export default {
  computed:{
    header(){
      return this.$store.state.header
    }
  }
}
</script>
<style lang="less">
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
#nav {
  padding: 30px;
  a {
    font-weight: bold;
    color: #2c3e50;
    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
